<template>
    <div>
        <p>
            <el-button @click="onesonFn">oneson1-----</el-button><span></span>
        </p>
        <p>
            <el-button @click="onesonbusFn">oneson1bus-----</el-button><span></span>
        </p>
        <hr>
        <onegrand v-bind="$attrs" v-on="$listeners"></onegrand>
    </div>
</template>

<script>
import onegrand from '@/components/onegrand'
import { bus } from '@/utils/bus.js'
export default {
    data() {
        return {
            mm: 'oneson1-content',
            nn: 'oneson1-bus-content'
        };
    },
    watch: {

    },
    methods: {
        onesonFn() {
            this.$emit('conesonFn', this.mm)
        },
        onesonbusFn() {
            bus.$emit('conesonbusFn', this.nn)
        }
    },
    components: {
        onegrand
    },
};
</script>

<style scoped>
</style>
